home *** CD-ROM | disk | FTP | other *** search
/ Core Concepts in Art 2 / Core Concepts in Art (Frames of Reference)(The McGraw-Hill Companies)(2004).iso / mac / media / search.swf / scripts / DefineButton2_60 / BUTTONCONDACTION on(release).as next >
Text File  |  2003-10-12  |  1KB  |  44 lines

  1. on(release){
  2.    var count = 0;
  3.    i = 0;
  4.    while(i < chapterArray[theChapter].length)
  5.    {
  6.       titlesHolder["titles" + i].pointer._visible = 0;
  7.       theTextColor = new Color("titlesHolder.titles" + i + ".title");
  8.       theChapterColor = new Color("titlesHolder.titles" + i + ".chapterHolder.chapNum");
  9.       theTextColor.setRGB(6710886);
  10.       theChapterColor.setRGB(6710886);
  11.       j = 0;
  12.       while(j < listTotal)
  13.       {
  14.          if(listItemsHolder["item" + j].title == titleBuilder_mc.titleArray[i])
  15.          {
  16.             count++;
  17.             c = j;
  18.             while(c < listTotal)
  19.             {
  20.                b = 0;
  21.                while(b < 6)
  22.                {
  23.                   listItemsHolder["item" + c][titleBuilder_mc.variables[b]] = listItemsHolder["item" + (c + 1)][titleBuilder_mc.variables[b]];
  24.                   b++;
  25.                }
  26.                c++;
  27.             }
  28.          }
  29.          j++;
  30.       }
  31.       i++;
  32.    }
  33.    listTotal -= count;
  34.    if(listTotal <= 10)
  35.    {
  36.       up_btn._visible = 0;
  37.       down_btn._visible = 0;
  38.       listItemsHolder._y = 28;
  39.    }
  40.    this["chp" + theChapter].splice(0,chapterArray[theChapter].length);
  41.    deselect_btn._visible = 0;
  42.    select_btn._visible = 1;
  43. }
  44.